﻿@model DLULearningNetworkModel.Course
<script type="text/javascript">
    $(document).ready(function () {
        CreateCourse.init();
        if($("#ui-datepicker-div").length > 0)
        {
            $("#ui-datepicker-div").remove();
        }

        $(".datetimePicker").datepicker({
            dateFormat: "dd/mm/yy",            
            changeMonth: true,
            changeYear:true,
            constrainInput: true,
            minDate: new Date(@DateTime.Now.Year,@DateTime.Now.Month-1,@DateTime.Now.Day-1),                
            autoSize: true
        });
    });
</script>
@using (Html.BeginForm())
{
    @Html.HiddenFor(m => m.CourseID_u)
    @Html.HiddenFor(m => m.AccountID_u)
    @Html.HiddenFor(m => m.Title_s)    
    @Html.HiddenFor(m => m.CreateDate_dt)
    @Html.HiddenFor(m => m.CategoryID_u)
    <div>
        <div style="width: 100px; float:left;">
            Thời gian:
        </div>
        <div style="float:left;">
            Từ @Html.EditorFor(m => m.StartDate_dt) đến @Html.EditorFor(m => m.EndDate_dt)</div>
    </div>
    <div class="clearall">
    </div>
    <div style="margin-top:10px;">
        <div style="width: 100px; float:left;">
            Mô tả:
        </div>
        <div style="float:left;">
        @Html.TextAreaFor(m => m.Description_s, new { style = "width:300px; height:70px; resize:none;" })</div>
    </div>
    <div class="clearall"></div>
    <div style="margin-top: 10px; margin-left:100px;">
        <input class="button" type="submit" value="Chấp nhận" />
    </div>
}